<?php if(!empty($rows)): ?>
	<h1><?php echo $rows->getTitle(); ?></h1>
	<p><i><?php echo $rows->getCreatedAt() ?></i></p>
	<?php echo image_tag('/uploads/assets/news/'.utilities::getSpreadPathByDate($rows->getCreatedAt()).'/'.$rows->getThumb(), array('width'=>'200','border'=>'0','align'=>'left','title'=>$rows->getTitle(),'alt'=>$rows->getTitle())); ?>
	<p><b><?php echo $rows->getDescription() ?></b></p>
	<?php echo $rows->getContent(ESC_RAW); ?>
	
	<h2><?php echo __('Related post'); ?></h2>
	<ul id="relatedList">
	<?php foreach ($related_list as $item): ?>
		<li><?php echo link_to(truncate_text($item->getTitle(),50),'@news?cateid='.$item->getNewsCategoryId().'&id='.$item->getId().'&title='.utilities::slugify($item->getTitle()).'.html', array("class"=>"newsLatestTitle",'title'=>$item->getTitle(),'alt'=>$item->getTitle())); ?></li>
	<?php endforeach; ?>
	</ul>
<?php else: ?>
	<?php echo __('Post is blocked !'); ?>
<?php endif; ?>

